package com.rd.student.ruanjian.class4.zhangrui;

public class Text02 {
    //金字塔
    public static void main(String[] args) {
        int ros=6;
        for (int i = 1; i <ros; i++) {
          //打印空格
            for (int j = 1; j < ros-i; j++) {
                System.out.print(" ");
            }
            //打印"*"
            for (int j = 1; j <=2*i-1; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
